<div id="sanpham_right">
           	    <div id="title_right">
            		<p id="title_right_left"></p>
            		<div id="title_right_center">
            		  <p class="chu_title">CẬP NHẬT CHI TIẾT NHẬP</p>
            		</div>
           			<p id="title_right_right"></p>
             	</div>
                <div id="noidung_right">

<?php //var_dump($list); echo $id;
//var_dump($data['listncc']);
//var_dump($data['listmh']);
?>
<form name="frm_editctnhap" method="post" action="">
	<table width="600" cellpadding="2" cellspacing="2" border="0"
		align="center" bgcolor="#D4D0C8">
		<tr>
			<td width="200" valign="top">
				<div align="center">Nhà cung cấp</div></td>
			<td width="200" valign="top" align="left">
			<select name="cmb_ncc">
			<?php
			if(is_array($data['listncc'])){
				foreach ($data['listncc'] as $item){?>
					<option value="<?php echo $item['MaNCC'];?>"
					<?php
					if($data['MaNCC'] == $item['MaNCC']){
						echo 'selected';
					}
					?>>
					<?php echo $item['TenNCC'];?>
					</option>
					<?php
				}
			}
			?>
			</select></td>
		</tr>

		<tr>
			<td width="200" valign="top">
				<div align="center">Mặt hàng</div></td>
			<td width="200" valign="top" align="left">
			<select name="cmb_mathang">
			<?php
			if(is_array($data['listmathang'])){
				foreach ($data['listmathang'] as $item){
					?>
					<option value="<?php $item['MaMH'];?>"
					<?php if($data['MaMH'] == $item['MaMH']){
						echo 'selected';
					}?>>
						<?php echo $item['TenMH'];?>
					</option>
					<?php
				}
			}
			?>
			</select></td>
		</tr>
		<tr>
			<td width="200" valign="top">
				<div align="center">Đơn giá nhập</div></td>
			<td width="200" valign="top"><input name="dongia" type="text"
				value="<?php echo $data['DonGiaNhap'];?>" id="input" /></td>
		</tr>
		<tr>
			<td width="200" valign="top">
				<div align="center">Số lượng nhập</div></td>
			<td width="200" valign="top"><input name="soluong" type="text"
				value="<?php echo $data['SoLuongNhap'];?>" id="input"/></td>
		</tr>
		<tr>
			<td width="400" valign="top" colspan="2">
				<div align="center">
					<input name="btok" type="submit" value="Cập nhật"  />
				</div></td>
		</tr>
	</table>
</form>
</div>
</div>